package pdm.traj.util;

import java.text.SimpleDateFormat;

public class TrajConstants {
	public static int POINT_NUM_PER_HOUR = 4;
//	public static int TIME_PART_NUM = 48;
	public static int TIME_PART_NUM = 24;
	public static int POINT_NUM_PER_PART = 24 * POINT_NUM_PER_HOUR / TIME_PART_NUM;
	public static int POINT_NUM_PER_DAY = POINT_NUM_PER_HOUR * 24;

	public static long TIME_SLOT_LEN_IN_MILLISEC = 1000 * 60 * (60 / POINT_NUM_PER_HOUR);
	public static long ONE_MINUTE_IN_MILLISEC = 1000 * 60; 
	public static long ONE_HOUR_IN_MILLISEC = 1000 * 60 * 60; 
	public static long ONE_DAY_IN_MILLISEC = 1000 * 60 * 60 * 24;
	public static long HALF_HOUR_IN_MILLISEC = 1000 * 60 * 30;
	public static long MAX_QUERY_DURATION_IN_HALF_HOUR = 2 * 24 * 365;
	
	public final static String TIMESTAMP_FORMAT_STR = "yyyy-MM-dd HH:mm:ss";
	public final static String DATE_FORMAT_IN_DATA_STR = "yyyy-MM-dd\tHH:mm:ss";
	public final static String DATE_FORMAT_STR = "yyyy-MM-dd";
	public final static SimpleDateFormat TIMESTAMP_FORMAT = new SimpleDateFormat(TIMESTAMP_FORMAT_STR);
	public final static SimpleDateFormat DATE_FORMAT_IN_DATA = new SimpleDateFormat(DATE_FORMAT_IN_DATA_STR);
	public final static SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(DATE_FORMAT_STR);
	
	//common constants
	public final static String SRC_PATH_STR = "SRC_PATH_STR";
	public final static String DEST_PATH_STR = "DEST_PATH_STR";
	public final static String SRC_BASE_PATH_STR = "SRC_BASE_PATH_STR";
	public final static String DAY_STR = "DAY_STR";
	public final static String ID_STR = "ID_STR";
	public final static String START_TIME_STR = "START_TIME_STR";
	public final static String END_TIME_STR = "END_TIME_STR";
	
	
	//for SortIDTS
	//SortIDTS parameter
	public final static String SORTIDTS_SRC_BASE_PATH = "D:/track_mining/linked/";
//	public final static String SORTIDTS_SRC_BASE_PATH = "/user/hadoop/pdm/linked/";
//	public final static String SORTIDTS_SRC_BASE_PATH = "/user/hadoop/pdm/linked/";
	
	public final static String SORTIDTS_DEST_BASE_PATH = "D:/track_mining/linkedAfterPart/";
//	public final static String SORTIDTS_DEST_BASE_PATH = "/user/hadoop/pdm/linkedAfterPart/";
//	public final static String SORTIDTS_DEST_BASE_PATH = "/user/hadoop/pdm/linkedAfterPart_new/";
	public final static int SORTIDTS_REDUCE_NUM = 45;
	
	//for PartDailyTraj
	//PartDailyTraj parameter
//	public final static String PART_DAILY_TRAJ_SRC_BASE_PATH = "D:/track_mining/trajBeforePart/";
	public final static String PART_DAILY_TRAJ_SRC_BASE_PATH = "/user/hadoop/pdm/built/";
//	public final static String PART_DAILY_TRAJ_DEST_BASE_PATH = "D:/track_mining/trajAfterPart/";
	public final static String PART_DAILY_TRAJ_DEST_BASE_PATH = "/user/hadoop/pdm/builtAfterPart/";
	public final static int PART_DAILY_TRAJ_REDUCE_NUM = 45;
	
	//for PersonTrajQuery
	//PersonTrajQuery parameter
//	public final static String QUERY_SRC_BASE_PATH = "D:/track_mining/linkedAfterPart/";
	public final static String QUERY_SRC_BASE_PATH = "/user/hadoop/pdm/linkedAfterPart/";
//	public final static int QUERY_REDUCE_NUM = 45;
	
	//for HotSpot
	//HotSpot parameter
	public final static String HOT_SPOT_SRC_BASE_PATH = "D:/track_mining/linkedAfterPart/";
//	public final static String HOT_SPOT_SRC_BASE_PATH = "/user/hadoop/pdm/linkedAfterPart/";
	
	//HotSpot constant
	public final static String WEST_STR = "WEST_STR";
	public final static String EAST_STR = "EAST_STR";
	public final static String NORTH_STR = "NORTH_STR";
	public final static String SOUTH_STR = "SOUTH_STR";
	public final static String XSTEP_STR = "XSTEP_STR";
	public final static String YSTEP_STR = "YSTEP_STR";
	
	//for PeopleStream
	//PeopleStream constants
//	public final static int PS_DEF_EAST = 
//	public final static String PEOPLE_STREAM_SRC_BASE_PATH = "/user/hadoop/pdm/linkedAfterPart/";
	public final static String PEOPLE_STREAM_SRC_BASE_PATH = "D:/track_mining/linkedAfterPart/";

	
	//for build on run
//	public final static String BUILD_TRAJ_SRC_BASE_PATH = "D:/track_mining/linkedAfterPart/";
	public final static String BUILD_TRAJ_SRC_BASE_PATH = "/user/hadoop/pdm/linkedAfterPart/";
	public final static int BUILT_TRAJ_REDUCE_NUM = 45;
}
